#ifndef SECONDPLUGIN_H
#define SECONDPLUGIN_H

#include "plugininterface.h"
#include <QLabel>

class SecondPlugin : public QObject, public PluginInterface
{
    Q_OBJECT
    Q_PLUGIN_METADATA(IID PluginInterface_iid)
    Q_INTERFACES(PluginInterface)

public:
    QString name() const override;
    QWidget* createWidget(QWidget* parent = nullptr) override;
    void setSharedValue(const QString& value) override;

private:
    QLabel* infoLabel; // 用于显示共享变量
};

#endif // SECONDPLUGIN_H
